package com.lwc.cfdns.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lwc.cfdns.pojo.bo.system.MenuBO;
import com.lwc.cfdns.pojo.dto.system.MenuDTO;
import com.lwc.cfdns.pojo.entity.SystemMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwc.cfdns.pojo.vo.system.MenuTreeVO;
import com.lwc.cfdns.pojo.vo.system.MenuVO;

import java.util.List;
import java.util.Map;

/**
 * @author spring
 * @description 针对表【cfdns_system_menu(菜单权限表)】的数据库操作Service
 * @createDate 2023-05-23 17:02:59
 */
public interface SystemMenuService extends IService<SystemMenu> {

    /**
     * 创建
     *
     * @param menuDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/23 17:13:39
     */
    Map<String, Object> create(MenuDTO menuDTO);

    /**
     * 详情
     *
     * @param id
     * @return MenuVO
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/23 17:13:56
     */
    MenuVO view(Long id);

    /**
     * @param id
     * @param menuDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/23 17:14:21
     */
    Map<String, Object> update(Long id, MenuDTO menuDTO);

    /**
     * 删除
     *
     * @param id
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/23 17:15:37
     */
    Map<String, Object> delete(Long id);

    /**
     * 列表
     *
     * @param menuBO
     * @return IPage<SystemMenu>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/24 08:20:57
     */
    IPage<SystemMenu> lists(MenuBO menuBO);

    /**
     * 树
     *
     * @param menuBO
     * @return List<MenuTreeVO>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/24 09:12:34
     */
    List<MenuTreeVO> tree(MenuBO menuBO);
}
